<?php /* Smarty version 2.6.18, created on 2010-03-10 18:51:54
         compiled from editOrgOrganism.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'editOrgOrganism.tpl', 33, false),)), $this); ?>
<form name="mainForm" method="POST" id="mainForm">
<input type="hidden" name="user[org_organism_id]" value="<?php echo $this->_tpl_vars['orgOrganism']['org_organism_id']; ?>
">
<table class="popup" border="0" cellspacing=0 cellpadding=0>
	<tr><td><div class="pop">
		<div class="top_pop"><img src="/app/default/www/images/top_left_pop.jpg" /></div> 
		<div id="drag_bar"><h2 class="pop_h2">Edit Organisms Properties</h2></div>
		<div class="content">
			<table border="0" width="100%">
				<tr>
					<td>MOID:</td>
					<td><?php echo $this->_tpl_vars['organism']['moid']; ?>
</td>
				</tr>
				<tr>
					<td>Name:</td>
					<td><?php echo $this->_tpl_vars['organism']['name']; ?>
</td>
				</tr>
				<tr>
					<td></td>
					<td>(<i><?php echo $this->_tpl_vars['organism']['scientific_name']; ?>
</i>)</td>
				</tr>
				<tr>
					<td colspan="2"><hr></td>
				</tr>
				<tr>
					<td nowrap>Ordering Status:</td>
					<td><select name="user[ordering_status]">
						<option value="Active" <?php if ($this->_tpl_vars['orgOrganism']['ordering_status'] == 'Active'): ?> selected <?php endif; ?>>Active</option>
						<option value="Inactive" <?php if ($this->_tpl_vars['orgOrganism']['ordering_status'] == 'Inactive'): ?> selected <?php endif; ?>>Inactive</option>
					</select></td>
				</tr>
				<tr>
					<td nowrap>Estimated Buy:</td>
					<td><input style="text-align: right" type="text" align="right" name="user[estimated_buy]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['orgOrganism']['estimated_buy'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "2%d") : number_format($_tmp, "2%d")); ?>
" size=8></td>
				</tr>
				<tr>
					<td nowrap>Non-Taxable:</td>
					<td><select name="user[non_taxable]">
						<option value="0" <?php if ($this->_tpl_vars['orgOrganism']['non_taxable'] == '0'): ?> selected <?php endif; ?>>Yes</option>
						<option value="1" <?php if ($this->_tpl_vars['orgOrganism']['non_taxable'] == '1'): ?> selected <?php endif; ?>>No</option>
					</select></td>
				</tr>
				<tr>
					<td nowrap>Base Price Sale:</td>
					<td><input style="text-align: right" type="text" align="right" name="user[base_price_sale]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['orgOrganism']['base_price_sale'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "2%d") : number_format($_tmp, "2%d")); ?>
" size=8></td>
				</tr>
				<tr>
					<td nowrap>Reorder Level:</td>
					<td><input style="text-align: right" type="text" align="right" name="user[reorder_level]" value="<?php echo $this->_tpl_vars['orgOrganism']['reorder_level']; ?>
" size=8></td>
				</tr>
				<tr>
					<td nowrap>Minimum Order:</td>
					<td><input style="text-align: right" type="text" align="right" name="user[min_order]" value="<?php echo $this->_tpl_vars['orgOrganism']['min_order']; ?>
" size=8></td>
				</tr>
				<tr>
					<td nowrap>Order Lead Days:</td>
					<td><input style="text-align: right" type="text" align="right" name="user[lead_days]" value="<?php echo $this->_tpl_vars['orgOrganism']['lead_days']; ?>
" size=8></td>
				</tr>
				<tr>
					<td>Currency:</td>
					<td><select name="user[currency_mark]">
						<?php $_from = $this->_tpl_vars['currencies']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['currency']):
?>
							<option value=<?php echo $this->_tpl_vars['currency']['currency_mark']; ?>
 <?php if ($this->_tpl_vars['currency']['currency_mark'] == $this->_tpl_vars['orgOrganism']['currency_mark']): ?> SELECTED <?php endif; ?>><?php echo $this->_tpl_vars['currency']['currency_mark']; ?>
</option>
						<?php endforeach; endif; unset($_from); ?>
					</select></td>
				</tr>
				<tr>
					<td>Remarks:</td>
					<td><input type="text" align="right" name="user[notes]" value="<?php echo $this->_tpl_vars['orgOrganism']['notes']; ?>
" size=50></td>
				</tr>
				<tr height="30px">
					<td colspan="2" align="center" style="padding-top: 20px">
						<input type="button" value="Save" onclick="saveOrgOrganism();">&nbsp;
						<input type="button" value="Close" onclick="popup('editOrgOrganism');">
					</td>
				</tr>
			</table>
		</div>
		<div class="btm_pop"><img src="/app/default/www/images/btm_left_pop.jpg"  alt="" />
	</div></td></tr>
</table>
</form>
<script language="javascript">
<?php echo '
	function saveOrgOrganism() {
		popup(\'editOrgOrganism\');
		doajaxAction("/account/saveOrgOrganism/",1,\'main_content\',document.getElementById(\'mainForm\'));
	}

'; ?>

</script>
	